Platform Explorer / Nuxeo Platform LTS 2015 7.10

Component org.nuxeo.ecm.platform.comment.workflow.operation.contrib

Contributions

XML Source

<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.comment.workflow.operation.contrib">

  <extension target="org.nuxeo.ecm.core.operation.OperationServiceComponent"
    point="operations">
    <operation class="org.nuxeo.ecm.platform.comment.workflow.ModerateCommentOperation" />
  </extension>
  
  <extension point="chains"
    target="org.nuxeo.ecm.core.operation.OperationServiceComponent">

    <chain id="acceptComment">
      <operation id="Context.FetchDocument" />
      <operation id="Comment.Moderate">
        <param type="boolean" name="accept">true</param>
      </operation>
    </chain>

    <chain id="rejectComment">
      <operation id="Context.FetchDocument" />
      <operation id="Comment.Moderate">
        <param type="boolean" name="accept">false</param>
      </operation>
    </chain>

  </extension>

</component>